package org.detailsmatter.util.assertion;

import org.hamcrest.Matcher;

/**
 * A facade for extra matchers
 * @author <a href="mailto:biethb@gmail.com">Bruno Bieth</a>
 */
public class Matchers {
	/**
	 * <ul>
	 * <li>Assert.that( "this is a string", containsExactly( 1, "string" ) ) => passes</li>
	 * <li>Assert.that( "this is a string", containsExactly( 2, "string" ) ) => exception</li>
	 * <li>Assert.that( "this is a string", containsExactly( 1, "aya" ) ) => exception</li>
	 * </ul>
	 */
	public static Matcher<String> containsExactly(int nb, String pattern) {
		return StringContainsOccurrence.containsExactly(nb, pattern);
	}
}
